﻿<Window x:Class="AppToolkit.WPF.Tests.Services.UserMessageHandling.UI.TestWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mv="clr-namespace:AppToolkit.WPF.Services.UserMessageHandling.UI;assembly=AppToolkit.WPF"
        Title="TestWindow" Height="300" Width="300">
    <DockPanel LastChildFill="True">
        <Button Content="Generate Error" DockPanel.Dock="Top"
                Height="23" HorizontalAlignment="Left" Margin="12" Name="btnGenerateError" VerticalAlignment="Top" Width="101" Click="button1_Click" />
        <Canvas Name="parent">
            <mv:MessageViewHost x:Name="_messageViewHost" />
            <Grid Name="grid1" Background="Beige"
                  Width="{Binding ElementName=parent,Path=Width}"
                  Height="{Binding ElementName=parent,Path=Height}"
                  />
                  <!--Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Canvas, AncestorLevel=1},Path=Width}"
                  Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Canvas, AncestorLevel=1},Path=Height}"-->
        </Canvas>
    </DockPanel>
</Window>
